set serveroutput on;

create or replace procedure userexception(price	number) AS

too_expensive	EXCEPTION;


begin

IF price > 99.99 THEN RAISE too_expensive;
	ELSE DBMS_OUTPUT.PUT_LINE('Price is only $ ' || price);
END IF;

exception
WHEN too_expensive THEN 
	DBMS_OUTPUT.PUT_LINE('Price is too high);
when others then 	
	DBMS_OUTPUT.PUT_LINE('Error-' || SQLERRM);

END;
/

